<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/commonTag.jsp"%>
<!DOCTYPE html>
<html>
<head>
	
	<title>Chase ↗</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<!-- CSS引用 -->
	<link rel="stylesheet" type="text/css" href="${path}/common/bootstrap/css/bootstrap.min.css"></link>
	<link rel="stylesheet" type="text/css" href="${path}/common/bootstrap/css/bootstrap-responsive.min.css"></link>
	
	<!-- alert CSS引用 -->
	<link rel="stylesheet" type="text/css" href="${path}/common/alert/css/messenger.css"></link>
	<link rel="stylesheet" type="text/css" href="${path}/common/alert/css/messenger-theme-air.css"></link>
	
	<!-- select CSS引用 -->
	<link rel="stylesheet" type="text/css" href="${path}/common/select/bootstrap-select.min.css" ></link>
	
	<style type="text/css">
		html,body {
			height: 100%;
			font-family: verdana,Courier New;
			font-size: 12px;
		}
		
		.chase-blank {
			width: 100%;
			height: 10px;
			clear: both;
			overflow: hidden;
		}
		
		/* Wrapper for page content to push down footer */
		#wrap {
			min-height: 100%;
			height: auto !important;
			height: 100%;
			/* Negative indent footer by it's height */
			margin: 0 auto -60px;
		}
		
		/* Set the fixed height of the footer here */
		#push,#footer {
			height: 60px;
		}
		
		#footer {
			/*background-color: #f5f5f5;*/
		}
		 
		/* Lastly, apply responsive CSS fixes as necessary */
		@media ( max-width : 767px) {
			#footer {
				margin-left: -20px;
				margin-right: -20px;
				padding-left: 20px;
				padding-right: 20px;
			}
		}
	</style>
	
	<!-- JS引用 -->
	<script type="text/javascript" src="${path}/common/js/jquery-2.0.3.min.js"></script>
	<script type="text/javascript" src="${path}/common/js/jquery.pager.js"></script>
	<script type="text/javascript" src="${path}/common/bootstrap/js/bootstrap.min.js"></script>
	
	<!-- alert插件引用  -->
	<script type="text/javascript" src="${path}/common/alert/js/messenger.min.js"></script>
	<script type="text/javascript" src="${path}/common/alert/js/messenger-theme-future.js"></script>
	
	<!-- select插件引用 -->
	<script type="text/javascript" src="${path}/common/select/bootstrap-select.min.js"></script>
	
	<!-- file 插件 -->
	<script type="text/javascript" src="${path}/common/file/bootstrap.file-input.js"></script>
	
	<script type="text/javascript" src="${path}/common/js/date.js"></script>
	
	<!-- zTree插件引用 -->
	<!-- <link rel="stylesheet" type="text/css" href="${path}/common/ztree/css/zTreeStyle.css">
	<script type="text/javascript" src="${path}/common/ztree/js/jquery.ztree.all-3.5.js"></script>  -->
	
	<script type="text/javascript">
	
		(function($){
			
			// 可以再任意js中使用 $.path,即可得到当前的path名称
			$.path = "${path}";   
			
			//  全选反选
			$.checkAllAndInvert = function(thisObject,tagName){
				if($(thisObject).is(":checked")){
					$("[name="+ tagName +"]").attr("checked","checked");
				} else {
					$("[name="+ tagName +"]").removeAttr("checked");
				}
			};
			
		})(jQuery);	
		
		
		// js全局初始化
		$(function(){
			
			// 配置alert弹出框
			$._messengerDefaults = {
				extraClasses: 'messenger-fixed messenger-theme-air messenger-on-top'
			}
			
			// 配置select下拉框
			$('.selectpicker').selectpicker();
			
			$('input[type=file]').bootstrapFileInput();
			
			// 修改默认alert样式
			/*var _alert = window.alert;
			
			MyAlert = function(text,type) {      
				
				// 需要修改的业务代码      
				$.globalMessenger().post({
				  message: text,
				  type: type,
				  hideAfter: 5,
				  showCloseButton: true
				});
			}; 
	
			MyAlert.noConflict = function() {   
				window.alert = _alert; 
			};
			
			window.alert = window.MyAlert = MyAlert;  */
		});
		
		/**
		 * 添加String的replaceAll方法
		 * 
		 * source      String 目标字符串
		 * replaceWith String 替换的字符串
		 * ignoreCase  String:gi g : 是否忽略大小写
		 */
		String.prototype.replaceAll = function(source, replaceWith, ignoreCase) {
		    if (!RegExp.prototype.isPrototypeOf(source)) {
		        return this.replace(new RegExp(source, (ignoreCase ? "gi": "g")), replaceWith);
		    } else {
		        return this.replace(source, replaceWith);
		    }
		}
	</script>
</head>
</html>